package com.yu.exception;


import lombok.AllArgsConstructor;
import lombok.Data;

/*
 * @Description:业务异常处理类
 *  @Date:2025-6-3
 * @Author:maxinyu
 */
@Data
public class BusinessException extends RuntimeException{

    public static final long serialVersionUID = 1L;// 序列化版本号

    private int code;// 错误码

     private String massage;// 错误信息

    public BusinessException(int code, String massage) {
        this.code = code;
        this.massage = massage;
    }
}
